package com.dhecp.project.storage.mapper;

import com.dhecp.core.genericDao.GenericDao;
import com.dhecp.project.common.domain.UpdateDeleted;
import com.dhecp.project.common.domain.UpdateFlow;
import com.dhecp.project.storage.domain.ProductAssemble;
import com.dhecp.project.storage.domain.PurchaseStorage;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

public interface ProductAssembleMapper extends GenericDao<ProductAssemble, String> {


    /**
     *@Description: 修改删除标志（仅需 guid 和 deleted）
     *@Param: [updateDeleted]
     *@return: int
     *@Author: hlf
     *@date: 2022-05-09 10:13
     */
    int updateDeleted(UpdateDeleted updateDeleted);

    /**
     *@Description: 修改流程状态及生效标志（仅需 guid、activeFlow、effectStock、updateTime）
     *@Param: [updateFlow]
     *@return: int
     *@Author: hlf
     *@date: 2022-05-09 10:13
     */
    int updateFlow(UpdateFlow updateFlow);

    List<ProductAssemble> findByBID(Map<String, Object> params);
    
    /**
     * 通过GUID获取单条数据
     * @param guid
     * @return
     */
    ProductAssemble findByGuid(String guid);

    List<ProductAssemble> listByBid(@Param("bid")String bid);

    List<ProductAssemble> selectPlanID (String planID);


}
